
<div class="sidebar_widget">
  <h3>Danh mục sản phẩm</h3>
  <ul class="arrows_list1">
     <?php foreach ($categories as $key => $value) {?>
        <li>
          <a href="<?php echo Yii::app()->baseUrl?>/product/index/catID/<?php echo md5($key)?>"
          title="<?php echo $value?>"> <?php echo $value?>
          </a>
          
          <?php $children = Category::model()->getChildren($key) ?>
          <?php if(!empty($children)){?>
          <ul>
            <?php foreach ($children as $k =>$v){?>              
              <li><a href="<?php echo Yii::app()->baseUrl?>/product/index/catID/<?php echo md5($k)?>"
              title="<?php echo $v?>"> <?php echo $v?>
              </a></li>
            <?php }?>
          </ul>
          <?php }?>
          
        </li>
      <?php }?> 
    <li><a href="#">Công trình mẫu</a></li>
  </ul>
</div>
